#define _CRT_SECURE_NO_WARNINGS
#include<stdio.h>
int main()
{
    int a, b;
    scanf("%d %d", &a, &b);
    int s = 0;
    int c = 0;
    s = a ^ b;
    while (s) 
    {
        if ((1 & s) == 1)
            c++;
        s >>= 1;
    }
    printf("%d", c);
    return 0;
}